package cn.zkc.pattern.Singleton;

/**
 * @Author : kay
 * @Date : 2020-07-03 16:40
 **/

public class Singleton {
    private static Singleton instance;
    private Singleton (){}

    public static Singleton getInstance() {
        if (instance == null) {
            instance = new Singleton();
        }
        return instance;
    }
}
